﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Spac.Hosting
{
    class Program
    {
        static void Main(string[] args)
        {
            using(ServiceHost host = new ServiceHost(typeof(SpacService)))
            {
                Console.ForegroundColor = ConsoleColor.Gray;
                Console.WriteLine("Starting SPAC Service...");

                host.Open();

                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine("SPAC Service started");
                Console.ForegroundColor = ConsoleColor.Gray;
                Console.WriteLine("Press key to shutdown...");
                Console.ReadKey();

                host.Close();
            }
        }
    }
}
